package demo.pattern.Factory;

/**
 * @author : GuoFei
 * @date : 2018/12/4 15:58
 */
abstract class Dirver {
    public abstract Car createCar(String car);
//    public static Car createCar(String carName){
//        Car c = null;
//        if ("bmw".equals(carName)) {
//            c = new Bmw();
//        } else if ("benz".equals(carName)) {
//            c = new Benz();
//        }
//        return c;
//    }
}
